﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ResidencyPlacementWPF
{
    /// <summary>
    /// Interaction logic for EditExamMark.xaml
    /// </summary>
    public partial class EditExamMark : Window
    {
        public EditExamMark()
        {
            InitializeComponent();
        }

        private void okButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void cancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        public string NameLabel
        {
            set
            {
                nameLabel.Content = value;
            }
        }

        public int Mark
        {
            set
            {
                markField.Text = value.ToString();
            }

            get
            {
                return int.Parse(markField.Text);
            }
        }    
    }
}
